package com.cgydu.dao;

import com.cgydu.entity.Address;

import java.sql.SQLException;
import java.util.List;

/**
 * projectName: day25_store
 * author: CGY
 * time: 2020/9/5 9:47
 * description:
 */
public interface AddressDao {
    List<Address> selectAddressByUid(int uid) throws SQLException;

    void insertAddress(Address address) throws SQLException;

    void deleteAddressByAid(String aid) throws SQLException;

    void updateAddressToDefault(String aid) throws SQLException;

    void updateAddressToCommons(String aid, int uid) throws SQLException;

    void updateAddressByAid(Address address) throws SQLException;


}

